package com.buka.service;

import com.buka.dao.HotelDao;
import com.buka.entity.Hotel;

import java.util.List;

public class HotelService {
    HotelDao hotelDao = new HotelDao();

    //未入住列表   service 需要调用dao层对象，查询数据
    public List<Hotel> noInList(){
        return hotelDao.noInList();
    }


    public int kf(int roomNum){
        return hotelDao.kf(roomNum);
    }

    public int tf(int roomNum){
        return hotelDao.tf(roomNum);
    }

    public int kf(int roomNum,String personCard){
        return hotelDao.kf(roomNum,personCard);
    }
}
